package com.campus.app.service;

import com.campus.app.mapper.Insert;
import com.campus.commons.entity.RoleMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.campus.commons.utils.Result;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 角色菜单关系表 服务类
 * </p>
 *
 * @author Rin
 * @since 2020-12-24
 */
public interface RoleMenusService extends IService<RoleMenu> {

    /**
     * 给角色添加权限
      */
    Result addRoleMenu(@Validated(value = Insert.class) RoleMenu roleMenu);



    /**
     * 给角色移出权限
     * @param id
     * @return
     */
    Result delRoleMenu(@NotNull@Min(1) Integer id);


}
